if (SERVER) then
	AddCSLuaFile("shared.lua")
	SWEP.Weight				= 5
	SWEP.AutoSwitchTo		= false
	SWEP.AutoSwitchFrom		= false
end

if (CLIENT) then
	SWEP.PrintName			= "Hands"
	SWEP.DrawAmmo			= false
	SWEP.DrawCrosshair		= true
	SWEP.ViewModelFOV		= 55
	SWEP.ViewModelFlip		= false
	SWEP.CSMuzzleFlashes	= false
	SWEP.Slot = 1
end



SWEP.Author		= "wrex"
SWEP.Contact		= "bjdroot@hotmail.com"
SWEP.Purpose		= "Smelting."
SWEP.Instructions	= "Primary fire: Look at a Forge and attack to start smelting."


SWEP.Spawnable			= false
SWEP.AdminSpawnable		= false

SWEP.ViewModel			= "models/weapons/v_fists.mdl"
SWEP.WorldModel			= "models/weapons/w_fists.mdl"

SWEP.Primary.ClipSize		= -1
SWEP.Primary.DefaultClip	= -1
SWEP.Primary.Automatic		= true
SWEP.Primary.Ammo			= "none"

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo			= "none"

/*---------------------------------------------------------
	Initialize
---------------------------------------------------------*/
function SWEP:Initialize()
end
/*---------------------------------------------------------
	Reload
---------------------------------------------------------*/
function SWEP:Reload()
end

/*---------------------------------------------------------
	PrimaryAttack
---------------------------------------------------------*/
function SWEP:PrimaryAttack()
         -- if CLIENT then return end
         -- self.Weapon:SetNextPrimaryFire(CurTime() + 1)
         -- self.Weapon:SendWeaponAnim(ACT_VM_DRAW)
         --self.Owner:EmitSound(Sound("ambient/gas/steam2.wav"))

         -- local trace = {}
         -- trace.start = self.Owner:GetShootPos()
         -- trace.endpos = trace.start + (self.Owner:GetAimVector() * 150)
         -- trace.filter = self.Owner

         -- local tr = util.TraceLine(trace)
         
         -- if !tr.HitNonWorld then 
		 -- self.Owner:ChatPrint("You Are Not Looking At A Forge!")
				-- return end
				
         -- if !tr.Entity then 
				-- self.Owner:ChatPrint("You Are Not Looking At A Forge!")
				-- return end

         -- if tr.Entity and tr.Entity:GetModel() == "models/props/cs_militia/furnace01.mdl"  and !tr.Entity:IsWorld() then
            -- local data = {}
            -- data.Entity = tr.Entity

            -- data.Chance = 100
            -- data.MinAmount = 1
            -- data.MaxAmount = 1

            -- self.Owner:DoProcess("Smelting",2,data)
		 -- else
		 -- self.Owner:ChatPrint("You Are Not Looking At A Forge!")
         -- end
end

/*---------------------------------------------------------
	SecondaryAttack
---------------------------------------------------------*/
function SWEP:SecondaryAttack()
end